package com.theme.passport.entity.constant;

/**
 *@描述: 第三方登录来源
 *@创建人:cuixinfu@51play.com
 *@创建时间:2019/6/18 19:45
 */
public enum AppStatusEnum {

    /** 是否是系统图标 **/
    ARE(1,"是"),
    NOT(2,"不是");

    private int value;
    private String name;

    AppStatusEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static AppStatusEnum getItemStatus(int value){
        AppStatusEnum[] thirdOriginTypes = AppStatusEnum.values() ;
        for (AppStatusEnum thirdOriginType : thirdOriginTypes) {
            if(thirdOriginType.getValue() == value){
                return thirdOriginType ;
            }
        }
        return null ;
    }

}

